package com.fhz.shop.ui.search.datasource;

import com.fhz.shop.dao.SearchDao;
import com.fhz.shop.entity.SearchBean;

import java.util.List;

import javax.inject.Inject;

/**
 * 时间:2023/9/1
 *
 * @author Mr.Feng
 * 简述: TODO
 */
public class SearchLocalDataSource {


    @Inject
    SearchDao mSearchDao;


    @Inject
    public SearchLocalDataSource() {
    }

    public void insert(SearchBean... searchBean){
        mSearchDao.insertSearch(searchBean);
    }

    public List<SearchBean> queryAll(){
       return mSearchDao.queryAll();
    }

    public void delete(SearchBean searchBean){
        mSearchDao.deleteSearch(searchBean);
    }
}

